package com.qf.admin.http;

public enum  ResultCode {

    SUCCESS(true , "success"),
    FAIL(false , "fail"),
    LOGIN_SUCCESS(true , "登录成功"),
    LOGIN_ERROR(false , "账号或密码错误");

    private boolean success ;
    private String description ;

    ResultCode(boolean success, String description) {
        this.success = success;
        this.description = description;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
